home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Dialog2 / c / OpenMenu < prev    next >
Text File  |  1995-05-19  |  1KB  |  42 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Dialog2.OpenMenu.c
  12.     Author:  Copyright © 1994 Julian Smith
  13.     Version: 1.03 (13 Mar 1995)
  14.     Purpose: Dialogue box handling
  15. */
  16.  
  17.  
  18. #include "DeskLib:WimpSWIs.h"
  19.  
  20.  
  21. #include "Defs.h"
  22.  
  23.  
  24.  
  25. BOOL    Dialog2_OpenDialogMenu( dialog2_block *dialog2, window_openpos openpos)
  26. {
  27. wimp_point    pos;
  28.  
  29. if ( !dialog2)    return ERROR;
  30.  
  31. Dialog2__CommonOpenMenuCode( dialog2);    /* Close any previous menuleaf etc.    */
  32.  
  33. dialog2->flags.data.type = dialog2_type_MENU;
  34. Dialog2__CommonOpenCode( dialog2);
  35.  
  36. Dialog2_Window_GetWindowOpenPos( &pos, openpos, dialog2->window);
  37. Wimp_CreateMenu( (menu_block *) -1, -1, -1);
  38. Wimp_CreateMenu( (menu_block *) dialog2->window, pos.x, pos.y);
  39.  
  40. return NOERROR;
  41. }
  42.